package com.faithbj.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 委托信息
 * 
 * @author XiaoQuan
 * 
 */
@Entity
@Table(name = "entrust_info")
public class EntrustInfo extends BaseEntity {

	private static final long serialVersionUID = -4466135146592706895L;
	/**
	 * 与核对总体情况关联的ID
	 */
	@Column(name = "ctId")
	private String ctId;
	/**
	 * 业务类型
	 */
	@Column(name = "type")
	private String type;
	/**
	 * 委托机构
	 */
	@Column(name = "entrust_org")
	private String entrustOrg;
	/**
	 * 证件类型
	 */
	@Column(name = "id_type")
	private String idType;
	/**
	 * 证件号码
	 */
	@Column(name = "id_number", length = 18)
	private String idNumber;
	/**
	 * 委托人
	 */
	@Column(name = "entrust_person", length = 24)
	private String entrustPerson;
	/**
	 * 委托编号
	 */
	@Column(name = "entrust_number", length = 18)
	private String entrustNumber;
	/**
	 * 委托日期
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "entrust_date")
	private Date entrustDate;
	/**
	 * 联系电话
	 */
	@Column(name = "phone", length = 24)
	private String phone;
	/**
	 * 户籍所在省
	 */
	@Column(name = "household_level1")
	private String householdLevel1;
	/**
	 * 户籍所在市
	 */
	@Column(name = "household_level2")
	private String householdLevel2;
	/**
	 * 户籍所在地区县
	 */
	@Column(name = "household_level3")
	private String householdLevel3;
	/**
	 * 户籍所在地街镇
	 */
	@Column(name = "household_level4")
	private String householdLevel4;
	/**
	 * 户籍所在地社区
	 */
	@Column(name = "household_level5")
	private String householdLevel5;
	/**
	 * 现居住所在省
	 */
	@Column(name = "living_level1")
	private String livingLevel1;
	/**
	 * 现居住所在市
	 */
	@Column(name = "living_level2")
	private String livingLevel2;
	/**
	 * 现居住地区县
	 */
	@Column(name = "living_level3")
	private String livingLevel3;
	/**
	 * 现居住地街镇
	 */
	@Column(name = "living_level4")
	private String livingLevel4;
	/**
	 * 现居住地社区
	 */
	@Column(name = "living_level5")
	private String livingLevel5;

	public String getCtId() {
		return ctId;
	}

	public void setCtId(String ctId) {
		this.ctId = ctId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getEntrustOrg() {
		return entrustOrg;
	}

	public void setEntrustOrg(String entrustOrg) {
		this.entrustOrg = entrustOrg;
	}

	public String getIdType() {
		return idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getEntrustPerson() {
		return entrustPerson;
	}

	public void setEntrustPerson(String entrustPerson) {
		this.entrustPerson = entrustPerson;
	}

	public String getEntrustNumber() {
		return entrustNumber;
	}

	public void setEntrustNumber(String entrustNumber) {
		this.entrustNumber = entrustNumber;
	}

	public Date getEntrustDate() {
		return entrustDate;
	}

	public void setEntrustDate(Date entrustDate) {
		this.entrustDate = entrustDate;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getHouseholdLevel1() {
		return householdLevel1;
	}

	public void setHouseholdLevel1(String householdLevel1) {
		this.householdLevel1 = householdLevel1;
	}

	public String getHouseholdLevel2() {
		return householdLevel2;
	}

	public void setHouseholdLevel2(String householdLevel2) {
		this.householdLevel2 = householdLevel2;
	}

	public String getHouseholdLevel3() {
		return householdLevel3;
	}

	public void setHouseholdLevel3(String householdLevel3) {
		this.householdLevel3 = householdLevel3;
	}

	public String getLivingLevel1() {
		return livingLevel1;
	}

	public void setLivingLevel1(String livingLevel1) {
		this.livingLevel1 = livingLevel1;
	}

	public String getLivingLevel2() {
		return livingLevel2;
	}

	public void setLivingLevel2(String livingLevel2) {
		this.livingLevel2 = livingLevel2;
	}

	public String getLivingLevel3() {
		return livingLevel3;
	}

	public void setLivingLevel3(String livingLevel3) {
		this.livingLevel3 = livingLevel3;
	}

	public String getHouseholdLevel4() {
		return householdLevel4;
	}

	public void setHouseholdLevel4(String householdLevel4) {
		this.householdLevel4 = householdLevel4;
	}

	public String getHouseholdLevel5() {
		return householdLevel5;
	}

	public void setHouseholdLevel5(String householdLevel5) {
		this.householdLevel5 = householdLevel5;
	}

	public String getLivingLevel4() {
		return livingLevel4;
	}

	public void setLivingLevel4(String livingLevel4) {
		this.livingLevel4 = livingLevel4;
	}

	public String getLivingLevel5() {
		return livingLevel5;
	}

	public void setLivingLevel5(String livingLevel5) {
		this.livingLevel5 = livingLevel5;
	}

	public void copyProperties(EntrustInfo ei) {
		this.setCtId(ctId);
		setEntrustDate(entrustDate);
		setEntrustNumber(entrustNumber);
		setEntrustOrg(entrustOrg);
		setEntrustPerson(entrustPerson);
		setHouseholdLevel1(householdLevel1);
		setHouseholdLevel2(householdLevel2);
		setHouseholdLevel3(householdLevel3);
		setHouseholdLevel4(householdLevel4);
		setHouseholdLevel5(householdLevel5);
		setIdNumber(idNumber);
		setIdType(idType);
		setLivingLevel1(livingLevel1);
		setLivingLevel2(livingLevel2);
		setLivingLevel3(livingLevel3);
		setLivingLevel4(livingLevel4);
		setLivingLevel5(livingLevel5);
		setPhone(phone);
		setType(type);
	}

}
